package com.maven.front.service.eduQuestionsTag;

import com.maven.front.bean.EduQuestions;
import com.maven.front.bean.EduQuestionsTag;
import com.maven.front.mapper.EduQuestionsTagMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EduQuestionsTagService {
    @Resource
    private EduQuestionsTagMapper eduQuestionsTagMapper;

public List<EduQuestionsTag> list(EduQuestionsTag eduQuestionsTag){

    List<EduQuestionsTag> list=eduQuestionsTagMapper.list(eduQuestionsTag);
    return list;
}

    public List<EduQuestionsTag> listTo(EduQuestionsTag eduQuestionsTag){

        List<EduQuestionsTag> list=eduQuestionsTagMapper.listTo(eduQuestionsTag);
        return list;
    }

    public int save(EduQuestionsTag eduQuestionsTag){
    return eduQuestionsTagMapper.save(eduQuestionsTag);
    }


    public int delete(Integer id){
    return eduQuestionsTagMapper.delete(id);
    }

    public int update(EduQuestionsTag eduQuestionsTag){
        return eduQuestionsTagMapper.update(eduQuestionsTag);
    }
}
